package com.zzzy.sys.vo.dept;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * 部门树形结果
 *
 * @author fc
 * @since 2024-04-22
 */
@Getter
@Setter
@Schema(name = "DeptTree", description = "部门")
public class DeptTreeVO {

    @Schema(description = "部门id")
    private Long id;

    @Schema(description = "部门名称")
    private String name;

    @Schema(description = "父部门id")
    private Long parentId;

    @Schema(description = "显示顺序")
    private Integer sort;

    @Schema(description = "负责人")
    private String leaderUser;

    @Schema(description = "子部门")
    private List<DeptTreeVO> children;
}
